package com.zhixue.media.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.zhixue.media.po.MediaProcess;
import org.apache.ibatis.annotations.*;

import java.util.List;

/**
 * @Auther: 李 力
 * @Date: 2025/4/28
 * @Description: com.zhixue.media.mapper
 * @version: 1.0
 */
@Mapper
public interface MediaProcessMapper extends BaseMapper<MediaProcess> {

    List<MediaProcess> selectListByShardIndex(@Param("shardTotal") int shardTotal, @Param("shardIndex") int shardIndex, @Param("failCount") int failCount, @Param("count") int count);

    int startTask(@Param("id") long id, @Param("failCount") int failCount);

}
